<?php
// +----------------------------------------------------------------------
// | Tplay [ WE ONLY DO WHAT IS NECESSARY ]
// +----------------------------------------------------------------------
// | Copyright (c) 2017 http://tplay.pengyichen.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: 听雨 < 389625819@qq.com >
// +----------------------------------------------------------------------


namespace app\admin\model;

use \think\Model;
use \think\Db;
class Poi extends Model
{
	public function poi()
    {
        //关联poi表
        return $this->hasOne('Poi');
    }

    //二级联动poi
    public function getPoiByCity()
    {
        $city = db('city')->where('deleted',0)->select();
        return $city;
    }
}
